package com.AAL.DAO.Interface;

import java.util.List;

import com.AAL.Model.Account;

public interface IAccountsDAO {
	/*
	 * Check ton tai username
	 */
	public Account checkUserName(String username);
	/*
	 * *Kiem tra dang nhap tai khoan
	 */
	public Account login(String username, String password);
	/*
	 * Thay doi mat khau nguoi dung
	 */
	public Account changePassword(Account account);
	/*
	 * Lay danh sach tai khoan
	 */
	public List<Account> getLstAccount();
	/*
	 * Luu va cap nhat mot tai khoan
	 */
	public Account saveAndUpdateAccount(Account account);
	/*
	 * Lay thong tin mot tai khoan nguoi dung
	 */
	public Account getAccount(int accountID);
	/*
	 * Xoa mot tai khoan
	 */
	public Account deleteAccount(int id);
	public Account editAccountOfDealer(Account account);
	public Account editAccountOfEmployee(Account account);
	public Account checkEmail(String email);
}
